/*
 * nvic.h
 *
 *  Created on: Dec 7, 2023
 *      Author: boen
 */

#ifndef INTERFACELIBS_XBOT_LIBS_NVIC_H_
#define INTERFACELIBS_XBOT_LIBS_NVIC_H_

#include <platform.h>
#include <battery.h>
#include <buzzer.h>
#include <camera.h>
#include <display.h>
#include <imu.h>
#include <key.h>
#include <manipulator.h>
#include <mobile.h>

#include <engineering_training_competition.h>

#define DEBUG_RX_BUFF_MAX									1//20

#define __CAN_EXT_ID__										0
#define __CAN_1_ENB__										1
#define __CAN_2_ENB__										0

int usart2_init(void);
int usart4_init(void);

void can_init(void);
void can_set_msg(uint32_t can_id, uint8_t can_msg[8], uint8_t dlc);
void can_set_ext_msg(uint32_t can_id, uint8_t can_msg[8], uint8_t dlc);

#endif /* INTERFACELIBS_XBOT_LIBS_NVIC_H_ */
